package main;

import java.awt.Dimension;
import java.awt.Toolkit;
import javax.swing.JFrame;

@SuppressWarnings("serial")
public class Approximation extends JFrame {

	private ApproximationPanel interpPanel = new ApproximationPanel();

	public static void main(String args[]) {
		Approximation in = new Approximation();
		in.paint();
	}

	public Approximation() {
		super("Interpolation");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	}

	public void paint() {
		add("Center", interpPanel);
		pack();

		Toolkit tk = Toolkit.getDefaultToolkit();
		Dimension screenSize = tk.getScreenSize();

		int screenHeight = screenSize.height;
		int screenWidth = screenSize.width;

		setSize(screenWidth / 2, screenHeight / 2);
		setVisible(true);
	}
}